#include<stdio.h>
#include<stdlib.h>
#include "dominion.h"


void testcardIsMinion(){

	struct gameState *state;

	state=newGame();

	int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse,
	           sea_hag, tribute, smithy};

	initializeGame(2, k, 1, state);

	int currentPlayer=0;
	int secondPlayer=1;

	int numActionsBefore=state->numActions; //this should increase afterward
	int coinsBefore=state->coins;
	int choice1=1;
	int choice2=0;
	int i,j;
	int handPos=1;

	zzzminioncardplay(currentPlayer, choice1, choice2, i, j, state, handPos);
	
	if(state->coins==coinsBefore+2)
	{
		printf("minionCard(): PASS coin increase +2. Before:%d  After:%d \n",coinsBefore, state->coins);
	}
	else{

		printf("minionCard(): FAIL coin increase +2. Before:%d  After:%d \n",coinsBefore, state->coins);
	}

	if(state->numActions==numActionsBefore+1)
	{
		printf("minionCard(): PASS action increase +1.  Before:%d  After:%d \n",numActionsBefore, state->numActions);
	}
	else{
		printf("minionCard(): FAIL fail action increase +1. Before:%d  After:%d \n",numActionsBefore, state->numActions);
	}


}


int main(int argc, char *argv[])
{
	testcardIsMinion();
    return 0;
}



